package com.etc.dao;

import com.etc.pojo.Video;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface VideoPersonageDao {

    /**
     * 查询用户发布所有视频
     * @param userId
     * @return
     */
    List<Video> queryAllVideoByUserId(@Param("userId") String userId);

    /**
     * 删除视频
     * @param videoId
     * @return
     */
    int deleteVideoByVideoId(@Param("videoId") String videoId,@Param("videoState")int videoState);

    /**
     * 增加视频
     * @param video
     * @return
     */
    int addVideo(@Param("video") Video video);
    /**
     * 增加视频
     * @param video
     * @return
     */
    int addVipVideo(@Param("video") Video video);
}
